<?php

if ((!defined('NV_SYSTEM')) AND (!defined('NV_ADMIN'))) {
    Header("Location: ../index.php");
    exit;
}

	global $db, $prefix, $currentlang, $language, $multilingual, $module_name, $datafold;
	$module_name = "News";
	include("$datafold/config.php");
	
    if ($multilingual == 1) {
        $querylang = "AND (alanguage='$currentlang' OR alanguage='')";
    } else {
        $querylang = "";
    }
    $cat_table=1;
    $res = $db->sql_query("SELECT id, title, strcount FROM ".$prefix."_stories WHERE strcount>'0' ORDER BY weight");
    $tdwidth = intval(100/$cat_table);
$content= "<table align=\"center\" border=\"0\" background=\"images/CKT_themes/bg_doanhnghiep.gif\" cellpadding=\"5\" cellspacing=\"0\" width=\"100%\">";
$content .= '<form action="modules.php?name=TimkiemDN" method="post"><tr><td valign="top" width="55%" align="center" colspan="2"><p>
	<input type="text" name="query" size="22"></p>
	<input type="submit" value="Tìm kiếm" name="B1" style="font-family: Arial; font-size: 10pt;"></td></tr>';
/*	echo "<tr></form>";
	$tb = 0;
    while(list($cid, $title_cat, $strcount) = $db->sql_fetchrow($res)) {
    echo "<td valign=\"top\" width=\"".$tdwidth."%\" align=\"left\">"; 	

    echo"<a href=\"modules.php?name=$module_name&td=cat&catid=$cid\"><img border=\"0\" src=\"modules/$module_name/images/folder.gif\" align=\"absmiddle\" width=\"16\"><b>$title_cat<font color=\"#ff0000\" face=\"arial\" size=\"2\"> ($strcount)</font></b></a><br> ";
//    echo"</td>";
	$tb ++;
	if($tb == $cat_table) { $tb = 0; echo "</td></tr><tr>"; }
    else { echo "</td>"; }
	}
*/
$content .="</table><br>";

?>
